<?php

namespace App\Http\Resources\Cruise;

use App\Http\Resources\BaseResource;
use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;

class CruiseTemplateResource extends BaseResource
{
    /**
     * Transform the resource into an array.
     *
     * @param Request $request
     * @return array
     */
    public function toArray($request): array
    {
        return [
            "id"   => $this->id,
            "name" => $this->name,
            "desc" => $this->desc
        ];
    }
}
